﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dal;
using Dtl;
namespace Bll
{
    public class EmailGroupBlo
    {
        public static DataSet getEmailGroups()
        {
            return Dal.EmailGroupDao.getEmailGroups();
        }

        public static DataSet getEmailGroupsItems(int idEmailGroup)
        {
            return Dal.EmailGroupDao.getEmailGroupsItems(idEmailGroup);
        }

        public static int setEmailGroup(List<EmailGroup> listEmailGroup, List<EmailGroupItem> listEmailGroupItem)
        {
            return Dal.EmailGroupDao.setEmailGroup(listEmailGroup, listEmailGroupItem);
        }

        public static int DeleteEmailGroup(int idEmailGroup)
        {
            return Dal.EmailGroupDao.DeleteEmailGroup(idEmailGroup);
        }

        public static int DeleteEmailGroupItem(int idEmailGroup, int idDistributor)
        {
            return Dal.EmailGroupDao.DeleteEmailGroupItem(idEmailGroup, idDistributor);
        }
    }
}
